/**
 * @description: 获取文件类型
 * @author ivan
 */
// word文件类型
const wordType = [
  'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
  'application/msword',
];

// excel文件类型
const excelType = [
  'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
  'application/msword',
];

// 判断是否为word文档
export function isWord(type: string): boolean {
  return wordType.includes(type);
}

// 判断是否为excel文档
export function isExcel(type: string): boolean {
  return excelType.includes(type);
}
